﻿<UserControl x:Class="SilverlightRibbon.Page"
             xmlns="http://schemas.microsoft.com/client/2007"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:rbn="clr-namespace:Infusion.Silverlight.Controls.Ribbon;assembly=Infusion.Silverlight.Controls"
             xmlns:ipt="clr-namespace:Infusion.Silverlight.Controls.Input;assembly=Infusion.Silverlight.Controls"
             xmlns:mnu="clr-namespace:Infusion.Silverlight.Controls.Menu;assembly=Infusion.Silverlight.Controls"
             SizeChanged="UserControl_SizeChanged">
    <Canvas>

        <ipt:Document x:Name="Doc" Canvas.Top="140">
            <ipt:DocumentPage />
            <ipt:DocumentPage Orientation="Landscape" />
        </ipt:Document>

        <rbn:Ribbon x:Name="RibbonCtrl" OfficeButtonImageSource="Images/OfficeLogo.png">
            
            <!-- Quick Launch Buttons -->
            <rbn:Ribbon.QuickLaunchButtons>
                <rbn:RibbonButton SmallImageSource="Images/Save.png" />
                <rbn:RibbonButton SmallImageSource="Images/Undo.png" MenuID="MenuUndo" ButtonClick="RibbonButton_ButtonClick" />
                <rbn:RibbonButton SmallImageSource="Images/Repeat.png" />
            </rbn:Ribbon.QuickLaunchButtons>
            
            <!-- Tabs -->
            <!-- Home -->
            <rbn:RibbonTab Title="Home">
                <rbn:RibbonTabGroup Title="Clipboard" Dialog="Enabled">
                    <rbn:RibbonButton Text="Paste" LargeImageSource="Images/PasteLarge.png" ToolTipID="ToolTipPaste"
                                      MenuID="MenuPaste" ButtonClick="RibbonButton_ButtonClick_Paste" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Cut" SmallImageSource="Images/Cut.png" ToolTipID="ToolTipCut" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Copy" SmallImageSource="Images/Copy.png" ToolTipID="ToolTipCopy" ButtonClick="RibbonButton_ButtonClick_Copy" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Format Painter" SmallImageSource="Images/FormatPainter.png" ToolTipID="ToolTipFormatPainter" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Font" Rows="Two" Dialog="Enabled">
                    <rbn:RibbonStackPanel>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <ipt:DropDownList Grid.Column="0" Width="136" Text="Calibri (Body)" />
                            <ipt:DropDownList Grid.Column="1" Width="43" Text="11" />
                        </Grid>
                        <rbn:RibbonButtonGroup>
                            <rbn:RibbonButtonGroupButton ImageSource="Images/GrowFont.png" />
                            <rbn:RibbonButtonGroupButton ImageSource="Images/ShrinkFont.png" />
                        </rbn:RibbonButtonGroup>
                        <rbn:RibbonButtonGroup>
                            <rbn:RibbonButtonGroupButton ImageSource="Images/ClearFormatting.png" />
                        </rbn:RibbonButtonGroup>
                    </rbn:RibbonStackPanel>
                    <rbn:RibbonStackPanel>
                        <rbn:RibbonButtonGroup>
                            <rbn:RibbonButtonGroupButton ImageSource="Images/Bold.png" IsToggleButton="True" />
                            <rbn:RibbonButtonGroupButton ImageSource="Images/Italic.png" IsToggleButton="True" />
                            <rbn:RibbonButtonGroupButton ImageSource="Images/Underline.png" IsToggleButton="True" MenuID="MenuUnderline" ButtonClick="RibbonButton_ButtonClick" />
                            <rbn:RibbonButtonGroupButton ImageSource="Images/TextStrikethrough.png" IsToggleButton="True" />
                            <rbn:RibbonButtonGroupButton ImageSource="Images/IndexLower.png" IsToggleButton="True" ToggleGroupID="GrpLowerUpper" />
                            <rbn:RibbonButtonGroupButton ImageSource="Images/IndexUpper.png" IsToggleButton="True" ToggleGroupID="GrpLowerUpper" />
                            <rbn:RibbonButtonGroupButton ImageSource="Images/ChangeCase.png" MenuID="MenuChangeCase" />
                        </rbn:RibbonButtonGroup>
                        <rbn:RibbonButtonGroup>
                            <rbn:RibbonButtonGroupButton ImageSource="Images/TextHighlight.png" MenuID="MenuHighlight" ButtonClick="RibbonButton_ButtonClick" />
                            <rbn:RibbonButtonGroupButton ImageSource="Images/FontColor.png" MenuID="MenuFontColor" ButtonClick="RibbonButton_ButtonClick" />
                        </rbn:RibbonButtonGroup>
                    </rbn:RibbonStackPanel>
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Paragraph" Rows="Two" Dialog="Enabled">
                    <rbn:RibbonStackPanel>
                        <rbn:RibbonButtonGroup>
                            <rbn:RibbonButtonGroupButton ImageSource="Images/ListBullets.png" MenuID="MenuBullets" ButtonClick="RibbonButton_ButtonClick" />
                            <rbn:RibbonButtonGroupButton ImageSource="Images/ListNumbered.png" MenuID="MenuNumbered" ButtonClick="RibbonButton_ButtonClick" />
                            <rbn:RibbonButtonGroupButton ImageSource="Images/ListMultilevel.png" MenuID="MenuMultiList" />
                        </rbn:RibbonButtonGroup>
                        <rbn:RibbonButtonGroup>
                            <rbn:RibbonButtonGroupButton ImageSource="Images/IndentDecrease.png" />
                            <rbn:RibbonButtonGroupButton ImageSource="Images/IndentIncrease.png" />
                        </rbn:RibbonButtonGroup>
                        <rbn:RibbonButtonGroup>
                            <rbn:RibbonButtonGroupButton ImageSource="Images/ParagraphSort.png" />
                        </rbn:RibbonButtonGroup>
                        <rbn:RibbonButtonGroup>
                            <rbn:RibbonButtonGroupButton ImageSource="Images/ShowParagraphMarks.png" IsToggleButton="True" />
                        </rbn:RibbonButtonGroup>
                    </rbn:RibbonStackPanel>
                    <rbn:RibbonStackPanel>
                        <rbn:RibbonButtonGroup IsToggleGroup="True" SelectedIndex="0">
                            <rbn:RibbonButtonGroupButton ImageSource="Images/ParagraphAlignLeft.png" />
                            <rbn:RibbonButtonGroupButton ImageSource="Images/ParagraphAlignCentre.png" />
                            <rbn:RibbonButtonGroupButton ImageSource="Images/ParagraphAlignRight.png" />
                            <rbn:RibbonButtonGroupButton ImageSource="Images/ParagraphAlignJustify.png" />
                        </rbn:RibbonButtonGroup>
                        <rbn:RibbonButtonGroup>
                            <rbn:RibbonButtonGroupButton ImageSource="Images/LineSpacing.png" MenuID="MenuLineSpacing" />
                        </rbn:RibbonButtonGroup>
                        <rbn:RibbonButtonGroup>
                            <rbn:RibbonButtonGroupButton ImageSource="Images/Shading.png" MenuID="MenuShading" ButtonClick="RibbonButton_ButtonClick" />
                            <rbn:RibbonButtonGroupButton ImageSource="Images/Borders/BottomBorder.png" MenuID="MenuBorders" ButtonClick="RibbonButton_ButtonClick" />
                        </rbn:RibbonButtonGroup>
                    </rbn:RibbonStackPanel>
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Styles" Dialog="Enabled">
                    <rbn:RibbonButton Text="Change Styles" LargeImageSource="Images/ChangeStylesLarge.png" MenuID="MenuChangeStyles" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Editing">
                    <rbn:RibbonButton Format="SmallWithText" Text="Find" SmallImageSource="Images/Find.png" MenuID="MenuFind" ButtonClick="RibbonButton_ButtonClick" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Replace" SmallImageSource="Images/Replace.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Select" SmallImageSource="Images/Select.png" MenuID="MenuSelect" />
                </rbn:RibbonTabGroup>
            </rbn:RibbonTab>
            
            <!-- Insert -->
            <rbn:RibbonTab Title="Insert">
                <rbn:RibbonTabGroup Title="Pages">
                    <rbn:RibbonButton Text="Cover Page" LargeImageSource="Images/CoverPageLarge.png" MenuID="MenuCoverPages" />
                    <rbn:RibbonButton Text="Blank Page" LargeImageSource="Images/BlankPageLarge.png" />
                    <rbn:RibbonButton Text="Page Break" LargeImageSource="Images/PageBreakLarge.png" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Tables">
                    <rbn:RibbonButton Text="Table" LargeImageSource="Images/TableLarge.png" MenuID="MenuTable" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Illustrations">
                    <rbn:RibbonButton Text="Picure" LargeImageSource="Images/PictureLarge.png" />
                    <rbn:RibbonButton Text="Clip Art" LargeImageSource="Images/ClipArtLarge.png" />
                    <rbn:RibbonButton Text="Shapes" LargeImageSource="Images/ShapesLarge.png" MenuID="MenuShapes" />
                    <rbn:RibbonButton Text="SmartArt" LargeImageSource="Images/SmartArtLarge.png" />
                    <rbn:RibbonButton Text="Chart" LargeImageSource="Images/ChartLarge.png" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Links">
                    <rbn:RibbonButton Format="SmallWithText" Text="Hyperlink" SmallImageSource="Images/Hyperlink.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Bookmark" SmallImageSource="Images/Bookmark.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Cross-reference" SmallImageSource="Images/CrossReference.png" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Header &amp; Footer">
                    <rbn:RibbonButton Text="Header" LargeImageSource="Images/HeaderLarge.png" MenuID="MenuHeader" />
                    <rbn:RibbonButton Text="Footer" LargeImageSource="Images/FooterLarge.png" MenuID="MenuFooter" />
                    <rbn:RibbonButton Text="Page Number" LargeImageSource="Images/PageNumberLarge.png" MenuID="MenuPageNumber" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Text">
                    <rbn:RibbonButton Text="Text Box" LargeImageSource="Images/TextBoxLarge.png" MenuID="MenuTextBox" />
                    <rbn:RibbonButton Text="Quick Parts" LargeImageSource="Images/QuickPartsLarge.png" MenuID="MenuQuickParts" />
                    <rbn:RibbonButton Text="WordArt" LargeImageSource="Images/WordArtLarge.png" MenuID="MenuWordArt" />
                    <rbn:RibbonButton Text="Drop Cap" LargeImageSource="Images/DropCapLarge.png" MenuID="MenuDropCap" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Signature Line" SmallImageSource="Images/SignatureLine.png" MenuID="MenuSignatureLine" ButtonClick="RibbonButton_ButtonClick" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Date &amp; Time" SmallImageSource="Images/DateAndTime.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Object" SmallImageSource="Images/Object.png" MenuID="MenuObject" ButtonClick="RibbonButton_ButtonClick" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Symbols">
                    <rbn:RibbonButton Text="Equation" LargeImageSource="Images/EquationLarge.png" MenuID="MenuEquation" ButtonClick="RibbonButton_ButtonClick" />
                    <rbn:RibbonButton Text="Symbol" LargeImageSource="Images/SymbolLarge.png" MenuID="MenuSymbol" />
                </rbn:RibbonTabGroup>
            </rbn:RibbonTab>
            
            <!-- Page Layout -->
            <rbn:RibbonTab Title="Page Layout">
                <rbn:RibbonTabGroup Title="Themes">
                    <rbn:RibbonButton Text="Themes" LargeImageSource="Images/ThemesLarge.png" MenuID="MenuThemes" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Colors" SmallImageSource="Images/Colors.png" MenuID="MenuColors" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Fonts" SmallImageSource="Images/Fonts.png" MenuID="MenuFonts" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Effects" SmallImageSource="Images/Effects.png" MenuID="MenuEffects" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Page Setup" Dialog="Enabled">
                    <rbn:RibbonButton Text="Margins" LargeImageSource="Images/MarginsLarge.png" MenuID="MenuMargins" />
                    <rbn:RibbonButton Text="Orientation" LargeImageSource="Images/OrientationLarge.png" MenuID="MenuOrientation" />
                    <rbn:RibbonButton Text="Size" LargeImageSource="Images/SizeLarge.png" MenuID="MenuSize" />
                    <rbn:RibbonButton Text="Columns" LargeImageSource="Images/ColumnsLarge.png" MenuID="MenuColumns" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Breaks" SmallImageSource="Images/Breaks.png" MenuID="MenuBreaks" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Line Numbers" SmallImageSource="Images/LineNumbers.png" MenuID="MenuLineNumbers" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Hyphenation" SmallImageSource="Images/Hyphenation.png" MenuID="MenuHyphenation" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Page Background">
                    <rbn:RibbonButton Text="Watermark" LargeImageSource="Images/WatermarkLarge.png" MenuID="MenuWatermark" />
                    <rbn:RibbonButton Text="Page Color" LargeImageSource="Images/PageColorLarge.png" MenuID="MenuPageColor" />
                    <rbn:RibbonButton Text="Page Borders" LargeImageSource="Images/PageBordersLarge.png" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Paragraph" Dialog="Enabled">
                    <rbn:RibbonLabel Text="Indent" />
                    <ipt:NumericUpDown Label="Left:" ImageSource="Images/IndentLeft.png" />
                    <ipt:NumericUpDown Label="Right:" ImageSource="Images/IndentRight.png" />
                    <rbn:RibbonSeparator />
                    <rbn:RibbonLabel Text="Spacing" />
                    <ipt:NumericUpDown Label="Before:" ImageSource="Images/LineSpBefore.png" />
                    <ipt:NumericUpDown Label="After:" ImageSource="Images/LineSpAfter.png" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Arrange">
                    <rbn:RibbonButton Text="Position" LargeImageSource="Images/PositionLarge.png" MenuID="MenuPosition" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Bring to Front" SmallImageSource="Images/BringToFront.png" MenuID="MenuBringToFront" ButtonClick="RibbonButton_ButtonClick" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Send to Back" SmallImageSource="Images/SendToBack.png" MenuID="MenuSendToBack" ButtonClick="RibbonButton_ButtonClick" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Text Wrapping" SmallImageSource="Images/TextWrapping.png" MenuID="MenuTextWrapping" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Align" SmallImageSource="Images/AlignLeft.png" MenuID="MenuAlign" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Group" SmallImageSource="Images/Group.png" MenuID="MenuGroup" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Rotate" SmallImageSource="Images/RotateRight.png" MenuID="MenuRotate" />
                </rbn:RibbonTabGroup>
            </rbn:RibbonTab>
            
            <!-- References -->
            <rbn:RibbonTab Title="References">
                <rbn:RibbonTabGroup Title="Table of Contents">
                    <rbn:RibbonButton Text="Table of Contents" LargeImageSource="Images/TableOfContentsLarge.png" MenuID="MenuTOC" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Add Text" SmallImageSource="Images/AddText.png" MenuID="MenuAddText" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Update Table" SmallImageSource="Images/Update.png" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Footnotes" Dialog="Enabled">
                    <rbn:RibbonButton Text="Insert Footnote" LargeImageSource="Images/InsertFootnoteLarge.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Insert Endnote" SmallImageSource="Images/InsertEndnote.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Next Footnote" SmallImageSource="Images/NextFootnote.png" MenuID="MenuNextFootnote" ButtonClick="RibbonButton_ButtonClick" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Show Notes" SmallImageSource="Images/ShowNotes.png" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Citations &amp; Bibliography">
                    <rbn:RibbonButton Text="Insert Citation" LargeImageSource="Images/InsertCitationLarge.png" MenuID="MenuInsertCitation" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Manage Sources" SmallImageSource="Images/ManageSources.png" />
                    <ipt:DropDownList Width="61" ImageSource="Images/StyleComboBox.png" Label="Style:" Text="APA" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Bibliography" SmallImageSource="Images/Bibliography.png" MenuID="MenuBibliography" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Captions">
                    <rbn:RibbonButton Text="Insert Caption" LargeImageSource="Images/InsertCaptionLarge.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Insert Table of Figures" SmallImageSource="Images/InsertTableOfFigures.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Update Table" SmallImageSource="Images/Update.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Cross-reference" SmallImageSource="Images/CrossReference.png" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Index">
                    <rbn:RibbonButton Text="Mark Entry" LargeImageSource="Images/MarkEntryLarge.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Insert Index" SmallImageSource="Images/InsertIndex.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Update Index" SmallImageSource="Images/Update.png" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Table of Authorities">
                    <rbn:RibbonButton Text="Mark Citation" LargeImageSource="Images/MarkCitationLarge.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Insert Table of Authorities" SmallImageSource="Images/InsertTableOfAuthorities.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Update Table" SmallImageSource="Images/Update.png" />
                </rbn:RibbonTabGroup>
            </rbn:RibbonTab>
            
            <!-- Mailings -->
            <rbn:RibbonTab Title="Mailings">
                <rbn:RibbonTabGroup Title="Create">
                    <rbn:RibbonButton Text="Envelopes" LargeImageSource="Images/EnvelopesLarge.png" />
                    <rbn:RibbonButton Text="Labels" LargeImageSource="Images/LabelsLarge.png" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Start Mail Merge">
                    <rbn:RibbonButton Text="Start Mail Merge" LargeImageSource="Images/StartMailMergeLarge.png" MenuID="MenuStartMailMerge" />
                    <rbn:RibbonButton Text="Select Recipients" LargeImageSource="Images/SelectRecipientsLarge.png" MenuID="MenuSelectRecipients" />
                    <rbn:RibbonButton Text="Edit|Recipient List" LargeImageSource="Images/EditRecipientsLarge.png" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Write &amp; Insert Fields">
                    <rbn:RibbonButton Text="Highlight|Merge Fields" LargeImageSource="Images/HighlightMergeFieldsLarge.png" />
                    <rbn:RibbonButton Text="Address Block" LargeImageSource="Images/AddressBlockLarge.png" />
                    <rbn:RibbonButton Text="Greeting Line" LargeImageSource="Images/GreetingLineLarge.png" />
                    <rbn:RibbonButton Text="Insert Merge Field" LargeImageSource="Images/InsertMergeFieldLarge.png" MenuID="MenuInsertMergeField" ButtonClick="RibbonButton_ButtonClick" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Rules" SmallImageSource="Images/Rules.png" MenuID="MenuRules" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Match Fields" SmallImageSource="Images/MatchFields.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Update Labels" SmallImageSource="Images/Refresh.png" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Preview Results">
                    <rbn:RibbonButton Text="Preview Results" LargeImageSource="Images/PreviewResultsLarge.png" />
                    <rbn:RibbonSeparator />
                    <rbn:RibbonStackPanel>
                        <rbn:RibbonButtonGroup>
                            <rbn:RibbonButtonGroupButton ImageSource="Images/MoveFirst.png" />
                            <rbn:RibbonButtonGroupButton ImageSource="Images/MovePrevious.png" />
                        </rbn:RibbonButtonGroup>
                        <!-- TEST: Start -->
                        <TextBox Width="42" Height="21" Margin="0,2,0,0" FontFamily="Calibri" FontSize="10.7" SelectionBackground="#88C3FF" SelectionForeground="#000000">
                            <TextBox.Template>
                                <ControlTemplate>
                                    <Grid x:Name="RootElement">
                                        <Grid.Resources>
                                            <SolidColorBrush x:Key="Background" Color="#E8EAEC"/>

                                            <SolidColorBrush x:Key="BorderBrush" Color="#A9B1B8"/>
                                            <SolidColorBrush x:Key="AccentBrush" Color="Transparent"/>

                                            <LinearGradientBrush x:Key="FocusedStrokeBrush" StartPoint="0.5,0" EndPoint="0.5,1">
                                                <GradientStop Color="Transparent" Offset="0"/>
                                                <GradientStop Color="Transparent" Offset="1"/>
                                                <GradientStop Color="Transparent" Offset="0.325"/>
                                                <GradientStop Color="Transparent" Offset="0.325"/>
                                            </LinearGradientBrush>

                                            <Storyboard x:Key="Normal State">
                                                <DoubleAnimation Storyboard.TargetName="FocusVisualElement"
                                                                    Storyboard.TargetProperty="Opacity" To="0" Duration="0:0:0.0"/>
                                            </Storyboard>

                                            <Storyboard x:Key="Focused State">
                                                <DoubleAnimation Storyboard.TargetName="FocusVisualElement"
                                                                                 Storyboard.TargetProperty="Opacity"
                                                                                 To="1" Duration="0:0:0.0"/>
                                            </Storyboard>
                                        </Grid.Resources>

                                        <Rectangle StrokeThickness=".5" RadiusX="0" RadiusY="0" Fill="#E8EAEC"/>

                                        <Rectangle StrokeThickness="1" RadiusX="0" RadiusY="0" Stroke="#A9B1B8"/>
                                        <Border x:Name="ContentElement" Padding="{TemplateBinding Padding}"/>

                                        <Grid x:Name="FocusVisualElement" Opacity="0" IsHitTestVisible="False">
                                            <Rectangle RadiusX="0" RadiusY="0" Margin="0" Stroke="Transparent" StrokeThickness="0"/>
                                            <Rectangle RadiusX="0" RadiusY="0" Stroke="Transparent" StrokeThickness="0"/>
                                            <Rectangle RadiusX="0" RadiusY="0" Stroke="Transparent" StrokeThickness="0"/>
                                        </Grid>
                                    </Grid>
                                </ControlTemplate>
                            </TextBox.Template> 
                        </TextBox>
                        <!-- TEST: End-->
                        <rbn:RibbonButtonGroup>
                            <rbn:RibbonButtonGroupButton ImageSource="Images/MoveNext.png" />
                            <rbn:RibbonButtonGroupButton ImageSource="Images/MoveLast.png" />
                        </rbn:RibbonButtonGroup>
                    </rbn:RibbonStackPanel>
                    <rbn:RibbonButton Format="SmallWithText" Text="Find Recipient" SmallImageSource="Images/FindRecipient.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Auto Check for Errors" SmallImageSource="Images/AutoCheck.png" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Finish">
                    <rbn:RibbonButton Text="Finish &amp; Merge" LargeImageSource="Images/FinishAndMergeLarge.png" MenuID="MenuFinishAndMerge" />
                </rbn:RibbonTabGroup>
            </rbn:RibbonTab>
            
            <!-- Review -->
            <rbn:RibbonTab Title="Review">
                <rbn:RibbonTabGroup Title="Proofing">
                    <rbn:RibbonButton Text="Spelling &amp; Grammar" LargeImageSource="Images/SpellingGrammarLarge.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Research" SmallImageSource="Images/Research.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Thesaurus" SmallImageSource="Images/Thesaurus.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Translate" SmallImageSource="Images/Translate.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Translation ScreenTip" SmallImageSource="Images/TranslationScreenTip.png" MenuID="MenuTranslationScreenTip" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Set Language" SmallImageSource="Images/SetLanguage.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Word Count" SmallImageSource="Images/WordCount.png" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Comments">
                    <rbn:RibbonButton Text="New Comment" LargeImageSource="Images/NewCommentLarge.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Delete" SmallImageSource="Images/DeleteComment.png" MenuID="MenuDeleteComment" ButtonClick="RibbonButton_ButtonClick" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Previous" SmallImageSource="Images/PreviousComment.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Next" SmallImageSource="Images/NextComment.png" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Tracking">
                    <rbn:RibbonButton Text="Track Changes" LargeImageSource="Images/TrackChangesLarge.png" MenuID="MenuTrackChanges" ButtonClick="RibbonButton_ButtonClick" />
                    <rbn:RibbonButton Text="Balloons" LargeImageSource="Images/BalloonsLarge.png" MenuID="MenuBalloons" />
                    <ipt:DropDownList Width="165" Text="Final Showing Markup" ImageSource="Images/MatchFields.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Show Markup" SmallImageSource="Images/ShowMarkup.png" MenuID="MenuShowMarkup" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Reviewing Pane" SmallImageSource="Images/ReviewingPaneVertical.png" MenuID="MenuReviewingPane" ButtonClick="RibbonButton_ButtonClick" ToolTipID="ToolTipReviewingPane" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Changes" Rows="Two">
                    <rbn:RibbonButton Text="Accept" LargeImageSource="Images/AcceptLarge.png" MenuID="MenuAccept" />
                    <rbn:RibbonButton Text="Reject" LargeImageSource="Images/RejectLarge.png" MenuID="MenuReject" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Previous" SmallImageSource="Images/PreviousChange.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Next" SmallImageSource="Images/NextChange.png" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Compare">
                    <rbn:RibbonButton Text="Compare" LargeImageSource="Images/CompareLarge.png" MenuID="MenuCompare" />
                    <rbn:RibbonButton Text="Show Source Documents" LargeImageSource="Images/ShowSourceDocumentsLarge.png" MenuID="MenuShowSource" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Protect">
                    <rbn:RibbonButton Text="Protect Document" LargeImageSource="Images/ProtectDocumentLarge.png" MenuID="MenuProtectDocument" />
                </rbn:RibbonTabGroup>
            </rbn:RibbonTab>
            
            <!-- View -->
            <rbn:RibbonTab Title="View">
                <rbn:RibbonTabGroup Title="Document Views">
                    <rbn:RibbonButton Text="Print Layout" LargeImageSource="Images/PrintLayoutLarge.png" />
                    <rbn:RibbonButton Text="Full Screen Reading" LargeImageSource="Images/FullScreenReadingLarge.png" />
                    <rbn:RibbonButton Text="Web Layout" LargeImageSource="Images/WebLayoutLarge.png" />
                    <rbn:RibbonButton Text="Outline" LargeImageSource="Images/OutlineLarge.png" />
                    <rbn:RibbonButton Text="Draft" LargeImageSource="Images/DraftLarge.png" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Show/Hide">
                    <ipt:CheckBox Label="Ruler" IsChecked="True" />
                    <ipt:CheckBox Label="Grid Lines"  />
                    <ipt:CheckBox Label="Message Bar" IsEnabled="False" />
                    <ipt:CheckBox Label="Document Map" />
                    <ipt:CheckBox Label="Thumbnails" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Zoom">
                    <rbn:RibbonButton Text="Zoom" LargeImageSource="Images/ZoomLarge.png" />
                    <rbn:RibbonButton Text="100%" LargeImageSource="Images/Zoom100Large.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="One Page" SmallImageSource="Images/OnePage.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Two Pages" SmallImageSource="Images/TwoPages.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Page Width" SmallImageSource="Images/PageWidth.png" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Window">
                    <rbn:RibbonButton Text="New Window" LargeImageSource="Images/NewWindowLarge.png" />
                    <rbn:RibbonButton Text="Arrange All" LargeImageSource="Images/ArrangeWindowsLarge.png" />
                    <rbn:RibbonButton Text="Split" LargeImageSource="Images/SplitWindowLarge.png" />
                    <rbn:RibbonSeparator />
                    <rbn:RibbonButton Format="SmallWithText" Text="View Side by Side" SmallImageSource="Images/SideBySide.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Synchronous Scrolling" SmallImageSource="Images/SynchronousScrolling.png" />
                    <rbn:RibbonButton Format="SmallWithText" Text="Reset Window Position" SmallImageSource="Images/ResetPosition.png" />
                    <rbn:RibbonSeparator />
                    <rbn:RibbonButton Text="Switch Windows" LargeImageSource="Images/SwitchWindowLarge.png" MenuID="MenuSwitchWindow" />
                </rbn:RibbonTabGroup>
                <rbn:RibbonTabGroup Title="Macros">
                    <rbn:RibbonButton Text="Macros" LargeImageSource="Images/MacrosLarge.png" MenuID="MenuMacros" ButtonClick="RibbonButton_ButtonClick" />
                </rbn:RibbonTabGroup>
            </rbn:RibbonTab>
            
            <rbn:Ribbon.ToolTips>
                <rbn:ToolTip ID="ToolTipPaste" Title="Paste (Ctrl+V)" Description="Paste the contents of the Clipboard." AlternativeDescription="Click here for more options such as pasting only the values or formatting." />
                <rbn:ToolTip ID="ToolTipCut" Title="Cut (Ctrl+X)" Description="Cut the selection from the document and put it on the Clipboard." />
                <rbn:ToolTip ID="ToolTipCopy" Title="Copy (Ctrl+C)" Description="Copy the selection and put it on the Clipboard." />
                <rbn:ToolTip ID="ToolTipFormatPainter" Title="Format Painter (Ctrl+Shift+C)" Description="Copy formatting from one place and apply it to another.||Double-click this button to apply the same formatting to multiple places in the document." ShowHelp="True" />
                
                <rbn:ToolTip ID="ToolTipReviewingPane" Title="Reviewing Pane" Description="Show revisions in a separate window." AlternativeDescription="Click here to choose a layout in which to display the Reviewing Pane." />
            </rbn:Ribbon.ToolTips>
            
            <rbn:Ribbon.Menus>
                <mnu:Menu ID="MenuPaste">
                    <mnu:MenuItem Text="_Paste" ImageSource="Images/Paste.png" />
                    <mnu:MenuItem Text="Paste _Special..." ImageSource="Images/PasteSpecial.png" />
                    <mnu:MenuItem Text="Paste as _Hyperlink" ImageSource="Images/PasteHyperlink.png" Enabled="False" />
                </mnu:Menu>
                <mnu:Menu ID="MenuUnderline" />
                <mnu:Menu ID="MenuChangeCase">
                    <mnu:MenuItem Text="_Sentence case." />
                    <mnu:MenuItem Text="_lowercase" />
                    <mnu:MenuItem Text="_UPPERCASE" />
                    <mnu:MenuItem Text="_Capitalize Each Word" />
                    <mnu:MenuItem Text="_tOGGLE cASE" />
                </mnu:Menu>
                <mnu:Menu ID="MenuHighlight" />
                <mnu:Menu ID="MenuFontColor" />
                <mnu:Menu ID="MenuBullets" />
                <mnu:Menu ID="MenuNumbered" />
                <mnu:Menu ID="MenuMultiList" />
                <mnu:Menu ID="MenuLineSpacing">
                    <mnu:MenuItem Text="1.0" />
                    <mnu:MenuItem Text="1.15" />
                    <mnu:MenuItem Text="1.5" />
                    <mnu:MenuItem Text="2.0" />
                    <mnu:MenuItem Text="2.5" />
                    <mnu:MenuItem Text="3.0" />
                    <mnu:MenuItem Text="Line Spacing Options..." />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="Add Space _Before Paragraph" ImageSource="Images/LineSpBefore.png" />
                    <mnu:MenuItem Text="Remove Space _After Paragraph" ImageSource="Images/LineSpAfter.png" />
                </mnu:Menu>
                <mnu:Menu ID="MenuShading" />
                <mnu:Menu ID="MenuBorders">
                    <mnu:MenuItem Text="_Bottom Border" ImageSource="Images/Borders/BottomBorder.png" />
                    <mnu:MenuItem Text="To_p Border" ImageSource="Images/Borders/TopBorder.png" />
                    <mnu:MenuItem Text="_Left Border" ImageSource="Images/Borders/LeftBorder.png" />
                    <mnu:MenuItem Text="_Right Border" ImageSource="Images/Borders/RightBorder.png" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="_No Border" ImageSource="Images/Borders/NoBorder.png" />
                    <mnu:MenuItem Text="_All Borders" ImageSource="Images/Borders/AllBorders.png" />
                    <mnu:MenuItem Text="Out_side Borders" ImageSource="Images/Borders/OutsideBorders.png" />
                    <mnu:MenuItem Text="_Inside Borders" ImageSource="Images/Borders/InsideBorders.png" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="Inside _Horizontal Border" ImageSource="Images/Borders/InsideHorizontalBorder.png" />
                    <mnu:MenuItem Text="Inside _Vertical Border" ImageSource="Images/Borders/InsideVerticalBorder.png" />
                    <mnu:MenuItem Text="Diagonal Do_wn Border" ImageSource="Images/Borders/DiagonalDownBorder.png" />
                    <mnu:MenuItem Text="Diagonal _Up Border" ImageSource="Images/Borders/DiagonalUpBorder.png" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="Hori_zontal Line" ImageSource="Images/HorizontalLine.png" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="_Draw Table" ImageSource="Images/DrawTable.png" />
                    <mnu:MenuItem Text="View _Gridlines" ImageSource="Images/ViewGridlines.png" />
                    <mnu:MenuItem Text="B_orders and Shading..." ImageSource="Images/PageBorders.png" />
                </mnu:Menu>
                <mnu:Menu ID="MenuChangeStyles">
                    <mnu:MenuItem Text="St_yle Set" ImageSource="Images/StyleSet.png" MenuID="MenuStyleSet" />
                    <mnu:MenuItem Text="_Colors" ImageSource="Images/Colors.png" MenuID="MenuColors" />
                    <mnu:MenuItem Text="_Fonts" ImageSource="Images/Fonts.png" MenuID="MenuFonts" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="_Set as Default" />
                </mnu:Menu>
                <mnu:Menu ID="MenuFind">
                    <mnu:MenuItem Text="_Find..." ImageSource="Images/Find.png" />
                    <mnu:MenuItem Text="_Go To..." ImageSource="Images/GoTo.png" />
                </mnu:Menu>
                <mnu:Menu ID="MenuSelect">
                    <mnu:MenuItem Text="Select _All" ImageSource="Images/SelectAll.png" />
                    <mnu:MenuItem Text="Select _Objects" ImageSource="Images/Select.png" />
                    <mnu:MenuItem Text="_Select Text with Similar Formatting" />
                </mnu:Menu>
                <mnu:Menu ID="MenuCoverPages" />
                <mnu:Menu ID="MenuTable" />
                <mnu:Menu ID="MenuShapes" />
                <mnu:Menu ID="MenuHeader" />
                <mnu:Menu ID="MenuFooter" />
                <mnu:Menu ID="MenuPageNumber">
                    <mnu:MenuItem Text="_Top of Page" ImageSource="Images/PageNumbersTop.png" MenuID="MenuPageNumbersTop" />
                    <mnu:MenuItem Text="_Bottom of Page" ImageSource="Images/PageNumbersBottom.png" MenuID="MenuPageNumbersBottom" />
                    <mnu:MenuItem Text="_Page Margins" ImageSource="Images/PageNumbersMargin.png" MenuID="MenuPageNumbersMargin" />
                    <mnu:MenuItem Text="_Current Position" ImageSource="Images/PageNumbersCurrent.png" MenuID="MenuPageNumbersCurrent" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="_Format Page Numbers..." ImageSource="Images/PageNumbersFormat.png" />
                    <mnu:MenuItem Text="_Remove Page Numbers" ImageSource="Images/PageNumbersRemove.png" />
                </mnu:Menu>
                <mnu:Menu ID="MenuPageNumbersTop" />
                <mnu:Menu ID="MenuPageNumbersBottom" />
                <mnu:Menu ID="MenuPageNumbersMargin" />
                <mnu:Menu ID="MenuPageNumbersCurrent" />
                <mnu:Menu ID="MenuTextBox" />
                <mnu:Menu ID="MenuQuickParts">
                    <mnu:MenuItem Text="_Document Property" ImageSource="Images/DocumentProperty.png" MenuID="MenuDocumentProperty" />
                    <mnu:MenuItem Text="_Field..." ImageSource="Images/Field.png" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="_Building Blocks Organizer..." ImageSource="Images/BuildingBlocksOrg.png" />
                    <mnu:MenuItem Text="_Get More on Office Online..." ImageSource="Images/OfficeOnline.png" />
                    <mnu:MenuItem Text="_Save Selection to Quick Part Library..." ImageSource="Images/SaveSelection.png" />
                </mnu:Menu>
                <mnu:Menu ID="MenuWordArt" />
                <mnu:Menu ID="MenuDropCap" />
                <mnu:Menu ID="MenuSignatureLine">
                    <mnu:MenuItem Text="_Microsoft Office Signature Line..." />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="_Add Signature Services..." />
                </mnu:Menu>
                <mnu:Menu ID="MenuObject">
                    <mnu:MenuItem Text="_Object..." ImageSource="Images/Object.png" />
                    <mnu:MenuItem Text="Text _from File..." ImageSource="Images/TextFromFile.png" />
                </mnu:Menu>
                <mnu:Menu ID="MenuEquation" />
                <mnu:Menu ID="MenuSymbol" />
                <mnu:Menu ID="MenuThemes" />
                <mnu:Menu ID="MenuColors" />
                <mnu:Menu ID="MenuFonts" />
                <mnu:Menu ID="MenuEffects" />
                <mnu:Menu ID="MenuMargins" />
                <mnu:Menu ID="MenuOrientation" />
                <mnu:Menu ID="MenuSize" />
                <mnu:Menu ID="MenuColumns" />
                <mnu:Menu ID="MenuBreaks" />
                <mnu:Menu ID="MenuLineNumbers">
                    <mnu:MenuItem Text="_None" />
                    <mnu:MenuItem Text="_Continuous" />
                    <mnu:MenuItem Text="_Restart Each Page" />
                    <mnu:MenuItem Text="R_estart Each Section" />
                    <mnu:MenuItem Text="Supress for Current Paragraph" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="_Line Numbering Options..." />
                </mnu:Menu>
                <mnu:Menu ID="MenuHyphenation">
                    <mnu:MenuItem Text="_None" />
                    <mnu:MenuItem Text="A_utomatic" />
                    <mnu:MenuItem Text="_Manual" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="_Hyphenation Options..." ImageSource="Images/Hyphenation.png" />
                </mnu:Menu>
                <mnu:Menu ID="MenuWatermark" />
                <mnu:Menu ID="MenuPageColor" />
                <mnu:Menu ID="MenuPosition" />
                <mnu:Menu ID="MenuBringToFront">
                    <mnu:MenuItem Text="Bring to F_ront" ImageSource="Images/BringToFront.png" />
                    <mnu:MenuItem Text="Bring _Forward" ImageSource="Images/BringForward.png" />
                    <mnu:MenuItem Text="Bring in Fron_t of Text" ImageSource="Images/BringInFrontOfText.png" />
                </mnu:Menu>
                <mnu:Menu ID="MenuSendToBack">
                    <mnu:MenuItem Text="Send to Bac_k" ImageSource="Images/SendToBack.png" />
                    <mnu:MenuItem Text="Send _Backward" ImageSource="Images/SendBackward.png" />
                    <mnu:MenuItem Text="Send Be_hind Text" ImageSource="Images/SendBehindText.png" />
                </mnu:Menu>
                <mnu:Menu ID="MenuTextWrapping">
                    <mnu:MenuItem Text="_In Line with Text" ImageSource="Images/TextWrapping/TextWrappingInLine.png" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="_Square" ImageSource="Images/TextWrapping/TextWrappingSquare.png" />
                    <mnu:MenuItem Text="_Tight" ImageSource="Images/TextWrapping/TextWrappingTight.png" />
                    <mnu:MenuItem Text="Behin_d Text" ImageSource="Images/TextWrapping/TextWrappingBehind.png" />
                    <mnu:MenuItem Text="I_n Front of Text" ImageSource="Images/TextWrapping/TextWrappingInFront.png" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="T_op and Bottom" ImageSource="Images/TextWrapping/TextWrappingTopAndBottom.png" />
                    <mnu:MenuItem Text="T_hrough" ImageSource="Images/TextWrapping/TextWrappingInFront.png" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="_Edit Wrap Points" ImageSource="Images/TextWrapping/TextWrappingEditPoints.png" />
                    <mnu:MenuItem Text="More _Layout Options..." ImageSource="Images/TextWrapping/TextWrappingMoreOptions.png" />
                </mnu:Menu>
                <mnu:Menu ID="MenuAlign">
                    <mnu:MenuItem Text="Align _Left" ImageSource="Images/Align/AlignLeft.png" />
                    <mnu:MenuItem Text="Align _Center" ImageSource="Images/Align/AlignCenter.png" />
                    <mnu:MenuItem Text="Align _Right" ImageSource="Images/Align/AlignRight.png" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="Align _Top" ImageSource="Images/Align/AlignTop.png" />
                    <mnu:MenuItem Text="Align _Middle" ImageSource="Images/Align/AlignMiddle.png" />
                    <mnu:MenuItem Text="Align _Bottom" ImageSource="Images/Align/AlignBottom.png" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="Distribute _Horizontally" ImageSource="Images/DistributeHorizontally.png" />
                    <mnu:MenuItem Text="Distribute _Vertically" ImageSource="Images/DistributeVertically.png" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="Align to _Page" />
                    <mnu:MenuItem Text="_Align to Margin" />
                    <mnu:MenuItem Text="Align Selected _Objects" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="View Gridline_s" />
                    <mnu:MenuItem Text="_Grid Settings..." ImageSource="Images/GridSettings.png" />
                </mnu:Menu>
                <mnu:Menu ID="MenuGroup">
                    <mnu:MenuItem Text="_Group" ImageSource="Images/Group.png" />
                    <mnu:MenuItem Text="R_egroup" ImageSource="Images/Regroup.png" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="_Ungroup" ImageSource="Images/Ungroup.png" />
                </mnu:Menu>
                <mnu:Menu ID="MenuRotate">
                    <mnu:MenuItem Text="Rotate _Right 90&#176;" ImageSource="Images/RotateRight.png" />
                    <mnu:MenuItem Text="Rotate _Left 90&#176;" ImageSource="Images/RotateLeft.png" />
                    <mnu:MenuItem Text="Flip _Vertical" ImageSource="Images/FlipVertical.png" />
                    <mnu:MenuItem Text="Flip _Horizontal" ImageSource="Images/FlipHorizontal.png" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="_More Rotation Options..." />
                </mnu:Menu>
                <mnu:Menu ID="MenuTOC" />
                <mnu:Menu ID="MenuAddText">
                    <mnu:MenuItem Text="Do Not Show in Table of Contents" />
                    <mnu:MenuItem Text="Level 1" />
                    <mnu:MenuItem Text="Level 2" />
                    <mnu:MenuItem Text="Level 3" />
                </mnu:Menu>
                <mnu:Menu ID="MenuNextFootnote">
                    <mnu:MenuItem Text="_Next Footnote" ImageSource="Images/NextFootnote.png" />
                    <mnu:MenuItem Text="_Previous Footnote" />
                    <mnu:MenuItem Text="Ne_xt Endnote" />
                    <mnu:MenuItem Text="Pre_vious Footnote" />
                </mnu:Menu>
                <mnu:Menu ID="MenuInsertCitation" />
                <mnu:Menu ID="MenuBibliography" />
                <mnu:Menu ID="MenuStartMailMerge">
                    <mnu:MenuItem Text="_Letters" ImageSource="Images/Letters.png" />
                    <mnu:MenuItem Text="_E-mail Messages" ImageSource="Images/Email.png" />
                    <mnu:MenuItem Text="En_velopes..." ImageSource="Images/Envelopes.png" />
                    <mnu:MenuItem Text="L_abels..." ImageSource="Images/Labels.png" />
                    <mnu:MenuItem Text="_Directory" ImageSource="Images/Directory.png" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="_Normal Word Document" ImageSource="Images/WordNormal.png" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="Step By Step Mail Merge _Wizard..." ImageSource="Images/StepByStepMailMerge.png" />
                </mnu:Menu>
                <mnu:Menu ID="MenuSelectRecipients">
                    <mnu:MenuItem Text="Type _New List..." ImageSource="Images/Design.png" />
                    <mnu:MenuItem Text="Us_e Existing List..." ImageSource="Images/UseExisting.png" />
                    <mnu:MenuItem Text="Select fr_om Outlook Contacts..." ImageSource="Images/OutlookContact.png" />
                </mnu:Menu>
                <mnu:Menu ID="MenuInsertMergeField" />
                <mnu:Menu ID="MenuRules">
                    <mnu:MenuItem Text="_Ask..." />
                    <mnu:MenuItem Text="_Fill-in..." />
                    <mnu:MenuItem Text="_If...Then...Else..." />
                    <mnu:MenuItem Text="Merge _Record #" />
                    <mnu:MenuItem Text="Merge Se_quence #" />
                    <mnu:MenuItem Text="_Next Record" />
                    <mnu:MenuItem Text="Ne_xt Record If..." />
                    <mnu:MenuItem Text="Set _Bookmark..." />
                    <mnu:MenuItem Text="_Skip Record If..." />
                </mnu:Menu>
                <mnu:Menu ID="MenuTranslationScreenTip">
                    <mnu:MenuItem Text="Arabic (Saudi Arabia)" />
                    <mnu:MenuItem Text="English (United State)" />
                    <mnu:MenuItem Text="French (France)" />
                    <mnu:MenuItem Text="Spanish (Spain, International Sort)" />
                    <mnu:MenuItem Text="Turn Off Translation ScreenTip" />
                </mnu:Menu>
                <mnu:Menu ID="MenuDeleteComment">
                    <mnu:MenuItem Text="_Delete" ImageSource="Images/DeleteComment.png" />
                    <mnu:MenuItem Text="Delete _All Comments Shown" />
                    <mnu:MenuItem Text="Delete All C_omments in Document" />
                </mnu:Menu>
                <mnu:Menu ID="MenuTrackChanges">
                    <mnu:MenuItem Text="Track Chan_ges" ImageSource="Images/TrackChanges.png" />
                    <mnu:MenuItem Text="Change Tracking _Options..." />
                    <mnu:MenuItem Text="Change _User Name..." />
                </mnu:Menu>
                <mnu:Menu ID="MenuBalloons">
                    <mnu:MenuItem Text="Show Revisions in _Balloons" />
                    <mnu:MenuItem Text="Show All Rev_isions Inline" />
                    <mnu:MenuItem Text="Show Only _Comments and Formatting in Balloons" />
                </mnu:Menu>
                <mnu:Menu ID="MenuShowMarkup">
                    <mnu:MenuItem Text="_Comments" />
                    <mnu:MenuItem Text="In_k" />
                    <mnu:MenuItem Text="_Insertions and Deletions" />
                    <mnu:MenuItem Text="_Formatting" />
                    <mnu:MenuItem Text="Markup Area _Highlight" />
                    <mnu:MenuItem Text="_Reviewers" MenuID="MenuReviewers" />
                </mnu:Menu>
                <mnu:Menu ID="MenuReviewingPane">
                    <mnu:MenuItem Text="Reviewing Pane _Vertical..." ImageSource="Images/ReviewingPaneVertical.png" />
                    <mnu:MenuItem Text="Reviewing Pane _Horizontal..." ImageSource="Images/ReviewingPaneHorizontal.png" />
                </mnu:Menu>
                <mnu:Menu ID="MenuAccept">
                    <mnu:MenuItem Text="Accept and _Move to Next" ImageSource="Images/Accept.png" />
                    <mnu:MenuItem Text="A_ccept Change" ImageSource="Images/Accept.png" />
                    <mnu:MenuItem Text="_Accept All Changes Shown" />
                    <mnu:MenuItem Text="Accept All Changes in _Document" />
                </mnu:Menu>
                <mnu:Menu ID="MenuReject">
                    <mnu:MenuItem Text="Reject and _Move to Next" ImageSource="Images/Reject.png" />
                    <mnu:MenuItem Text="_Reject Change" ImageSource="Images/Reject.png" />
                    <mnu:MenuItem Text="Reject _All Changes Shown" />
                    <mnu:MenuItem Text="Reject All Changes in _Document" />
                </mnu:Menu>
                <mnu:Menu ID="MenuCompare" />
                <mnu:Menu ID="MenuShowSource" />
                <mnu:Menu ID="MenuProtectDocument" />
                <mnu:Menu ID="MenuSwitchWindow">
                    <mnu:MenuItem Text="_1 Document1" />
                </mnu:Menu>
                <mnu:Menu ID="MenuMacros">
                    <mnu:MenuItem Text="_View Macros" ImageSource="Images/Macros.png" />
                    <mnu:MenuItem Text="_Record Macro..." ImageSource="Images/RecordMacro.png" />
                    <mnu:MenuItem Text="_Pause Recording" ImageSource="Images/PauseRecordMacro.png" Enabled="False" />
                </mnu:Menu>
                <mnu:Menu ID="MenuUndo" />
                <mnu:Menu ID="MenuReviewers" />
                <mnu:Menu ID="MenuFinishAndMerge">
                    <mnu:MenuItem Text="_Edit Individual Documents..." ImageSource="Images/EditIndividualDocs.png" />
                    <mnu:MenuItem Text="_Print Documents..." ImageSource="Images/PrintDocs.png" />
                    <mnu:MenuItem Text="_Send E-mail Messages..." ImageSource="Images/SendEmailMessages.png" />
                </mnu:Menu>
                <mnu:Menu ID="MenuContext">
                    <mnu:MenuItem Text="Cu_t" ImageSource="Images/Cut.png" Enabled="False" />
                    <mnu:MenuItem Text="_Copy" ImageSource="Images/Copy.png" Enabled="False" />
                    <mnu:MenuItem Text="_Paste" ImageSource="Images/Paste.png" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="_Font..." ImageSource="Images/FontDialog.png" />
                    <mnu:MenuItem Text="_Paragraph..." />
                    <mnu:MenuItem Text="_Bullets" ImageSource="Images/ListBullets.png" />
                    <mnu:MenuItem Text="_Numbering" ImageSource="Images/ListNumbered.png" />
                    <mnu:MenuItem Text="_List" ImageSource="Images/ListMultilevel.png" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="_Hyperlink..." ImageSource="Images/Hyperlink.png" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="Loo_kup..." ImageSource="Images/Find.png" />
                    <mnu:MenuItem Text="S_ynonyms" />
                    <mnu:MenuItem Text="Tr_anslate" />
                    <mnu:MenuItem Text="_Line Spacing" />
                    <mnu:MenuSeparator />
                    <mnu:MenuItem Text="S_tyles" />
                </mnu:Menu>
            </rbn:Ribbon.Menus>
            
        </rbn:Ribbon>
        
    </Canvas>
</UserControl>